<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>

  <div class="portlet-content">
    <% form_tag settings_path, :method => 'get' do %>
      <table style="border:0px">
        <tr>
          <th> <%= label_tag t('activerecord.attributes.setting.var') %> </th>
          <th> <%= text_field_tag :search_var, params[:search_var] %> </th>
          <th> <%= submit_tag t('btn_search'), :name => nil %> </th>
        </tr>
      </table>
    <% end %>

    <div class="line-label">
      <%= page_entries_info(@settings) %>
    </div>
    
    <% if @settings.size > 0 %>
      <% paginated_section(@settings, options_will_paginate) do %>
        <table>
          <thead>
            <tr>
              <th><%=t('activerecord.attributes.setting.var')%></th>
              <th><%=t('activerecord.attributes.setting.value')%></th>
              <th colspan="3"><%= t('title_actions') %></th>
            </tr>
          </thead>

          <tbody>
            <% @settings.each do |setting| %>
              <tr>
                <td><%=h setting.var %></td>
                <td><%=h setting.value %></td>
                <td class="action"><%= link_to t('btn_show'), setting %></td>
                <td class="action"><%= link_to t('btn_edit'), edit_setting_path(setting) %></td>
                <td class="action"><%= link_to t('btn_destroy'), setting, :confirm => t('msg_sure_destroy?'), :method => :delete %></td>
              </tr>
            <% end %>
          </tbody>
        </table>
      <% end %>
    <% end %>

    <div class="line-links">
      <%= link_to t('.btn_new_setting'), new_setting_path %>
    </div>
  </div>

  <div class="portlet-footer">
  </div>
</div>
